package com.manage.competition.repository;

import com.manage.competition.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * Create with IDEA
 *
 * @Author:Vantcy
 * @Date: Create in 14:23 2019/1/23
 * @Description:
 */
public interface UserRepository extends JpaSpecificationExecutor<User>,JpaRepository<User,Long> {
    /**
     * 根据username 查找用户
     * @param username
     * @return
     */
    User findByUsername(String username);


}
